package com.xzy.dao;

import com.xzy.domain.OrderItem;

import java.util.List;

public interface IOrderItemDao {

    /**
     * 添加订单项
     */
    public void addOrderItem(OrderItem orderItem);

    /**
     * 按订单号查询订单项
     * @param OrderId
     * @return
     */
    public List<OrderItem> queryByOrderId(String OrderId);

    /**
     * 按订单项号查询订单项
     * @param OrderItemId
     * @return
     */
    public OrderItem queryByOrderItemId(Integer OrderItemId);
}
